# $Id: PKGBUILD 65835 2012-02-22 12:53:22Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-graphics-colornames
pkgver=2.11
pkgrel=5
pkgdesc="Perl/CPAN Module Graphics::ColorNames : provides RGB values for standard color names"
arch=('any')
url="http://search.cpan.org/~rrwo/Graphics-ColorNames/"
license=("GPL" "PerlArtistic")
depends=("perl")
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/R/RR/RRWO/Graphics-ColorNames-${pkgver}.tar.gz")
md5sums=('047eabbb48d7c29cfebac6f9da8478f6')

build() {
  cd Graphics-ColorNames-${pkgver}

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd Graphics-ColorNames-${pkgver}

  make pure_install doc_install DESTDIR=${pkgdir}

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}
